package com.design.strategy;

import com.design.strategy.service.impl.FlyNoWay;
import com.design.strategy.service.impl.Quack;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/9/8
 * @Description
 */
public class ModelDuck extends Duck {

    public ModelDuck(){
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();

    }

    @Override
    public void display() {
        System.out.println("I am model duck");
    }
}
